package com.bjsxt.mapper;

import com.bjsxt.pojo.Company;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface  CompanyMapper {
    /*按条件查询公司信息*/
     List<Company> selectFindMore(Company company);
     //添加公司对象信息
     @Insert("insert into t_company(cpwd,cname,ceo,cphone,cmail) values(#{cpwd},#{cname},#{ceo},#{cphone},#{cmail})")
     Integer   insert(Company company);

     //修改公司的信息
    @Update("update  t_company set cpwd=#{cpwd},cname=#{cname},ceo=#{ceo},cphone=#{cphone},cmail=#{cmail} where cid=#{cid}")
    Integer update(Company company);

}
